<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8">
<base href="./">
<link rel="stylesheet" href="libs/css/edit.css">
</head>
<body>
	
	<form action="RoomType"  method="post">
		<c:if test="${info==null}">
			<input type="hidden" name="cmd" value="insert">
		</c:if>
		<c:if test="${info!=null}">
			<input type="hidden" name="cmd" value="update">
			<input type="hidden" name="id" value="${info.id}">
		</c:if>
		
		<div class="inputview">		
		
		<span class="inputspan"> 
		<label class="inputtext">名称:</label> 
		<input class="inputinput" name="name" value="${info.name}"/>
		</span>
		<span class="inputspan"> 
		<label class="inputtext">价格:</label> 
		<input class="inputinput" name="price" value="${info.price}"/>
		</span>
		<span class="inputspan"> 
		<label class="inputtext">标识:</label> 
		<c:forEach items="${marklist}" var="r" varStatus="v" >
			<c:if test="${info==null}">
				<label>${r }</label><input type="checkbox" name="m" value="${v.index}">
			</c:if>
			<c:if test="${info.marklist[v.index]=='0' }">
				<label>${r }</label><input type="checkbox" name="m" value="${v.index}">
			</c:if>
			<c:if test="${info.marklist[v.index]=='1' }">
				<label>${r }</label><input type="checkbox" name="m" value="${v.index}" checked="checked">
			</c:if>
		</c:forEach>
		</span>
		
		
		</div>
		
		<div class="inputbtpanel">
		<button class="seachbt1" type="submit" >保存</button>
		</div>
	</form>
	
</body>
</html>